﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace KickerTournament.BL.MonsterDYP
{
    class MonsterDypTourney : ITourney
    {
        protected List<Player> Players { get; set; }
        protected List<Team> Teams { get; set; }
        

        IRoundFactory mRoundFactory = new MonsterDypRoundFactory();

        public void startNew(List<Player> players, List<Team> teams)
        {
            Players = players;
            Teams = teams;
        }

        public void startNextRound()
        {
            IRound newRound = mRoundFactory.createNextRound(Players, Teams);
            TourneyRounds.Add(CurrentRound);

            List<Match> matches = newRound.generateMatches(CurrentRound);

            CurrentRound = newRound;
        }
    }
}
